﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Classified.Domain.Entities
{
   public class MessageInfo
    {
       [Key]
       public int Id { get; set; }
       [MaxLength(100000)]
       [Required]
       public string Body { get; set; }

       [Required]
       public string Subject { get; set; }

       [Required]
       [Display(Name = "Full Name")]
       public string Sender_FullName { get; set; }

       [Required]
       [Display(Name = "Your Email Address")]
       public string Sender_EmailAddress { get; set; }

       public DateTime SentDate { get; set; }
       public bool IsRead { get; set; }
       public int UserId { get; set; }
       [ForeignKey("UserId")]
       public virtual User Users { get; set; }
    }
}
